from ultralytics import YOLO

# Load a model
# model = YOLO('yolov8n.pt')  # load an official model
model = YOLO('weights/best_7.pt')  # load a custom trained model

# Export the model
# model.export(format='onnx')  # onnx
model.export(format="openvino", dynamic=True, half=True) #  openvino
# model.export(format='torchscript', optimize=True) # 0.4帧，别用
# model.export(format='tflite') # 导不出来，别用
